package com.molin.extensionTest.parentsDelegationModel;

public class Demo {
    public static void main(String[] args) {
        ClassLoader sys= ClassLoader.getSystemClassLoader();
        ClassLoader ext= sys.getParent();
        ClassLoader boot=ext.getParent();
        System.out.println("系统类加载器:"+sys);
        System.out.println("平台类加载器"+ext);
        System.out.println("启动类加载器"+boot);
/*测试结果
系统类加载器:jdk.internal.loader.ClassLoaders$AppClassLoader@3fee733d
平台类加载器jdk.internal.loader.ClassLoaders$PlatformClassLoader@3941a79c
启动类加载器null
*/
    }
}
